package org.gas.barapraja.proc;

import com.logica.smpp.pdu.Request;
import com.logica.smpp.pdu.Response;

public abstract class PduProcessor {
	
	protected String processName;
	
	protected boolean active=false;
	
	protected GasSmscSession session;
	
	public abstract void clientRequest(Request request);
	
	public abstract void serverRequest(Request request);
	
	public abstract void clientResponse(Response response);
	
	public abstract void serverResponse(Response response);

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}
	
	public void stop(){
		active=false;
	}

	public GasSmscSession getSession() {
		return session;
	}

	public void setSession(GasSmscSession session) {
		this.session = session;
	}
	
	

}
